<%-- 
    Document   : VFHotel
    Created on : 01/06/2010, 20:08:42
    Author     : TIAGO
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@page import="br.terminalrodoviario.Hotel"%>
<%@page import="java.util.*, java.text.*" %>
<jsp:useBean class="br.terminalrodoviario.Hotel" id="Hotel" scope="page"/>

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <title>Guia Terminal Rodoviário</title>

        <%
                    String id = request.getParameter("id");
                    if (id != null) {
                        Hotel = new Hotel().selectById("Select c from Hotel c where c.id = " + id);
                    }
        %>

        <style type="text/css" rel="stylesheet">
            @import url("../add/css/cssAdmin.css");
            @import url("../add/css/cod.css");
            @import url("../add/css/rodape.css");
        </style>
        <script type="text/javascript" src="add/js/jquery.js"></script>

        <script type="text/javascript" src="add/js/jquery.innerfade.js"></script>

        <script type="text/javascript" src="add/js/config.js"></script>
    </head>

    <body>
        <div class="geral">
            <table>
                <tr>
                    <td>
                        <div id="cabecalho"></div>
                    </td>
                </tr>
            </table>
            <div style="float:left">
                &nbsp;&nbsp;<b><a href="index.jsp">Início</a> -> <a href="VMHotel.jsp">Hotéis</a> -> <a href="VFHotel.jsp?id=<%=request.getParameter("id")%>">Dados do Hotel</a></b>
            </div>
            <div align="right" style="font-family:calibri; font-size:13px;"><a href="Company/login.jsp">Área Restrita</a>&nbsp;&nbsp;&nbsp;</div>
            <table>
                <tr>
                    <td>
                        <div>
                            <ul class="menu">
                                <li><a href="index.jsp"><b>início</b></a></li>
                                <li><a href="VMCompany.jsp"><b>empresas</b></a></li>
                                <li><a href="VMBusStation.jsp"><b>terminais rodoviários</b></a></li>
                                <li class="current"><a href="VMHotel.jsp"><b>hotéis</b></a></li>
                                <li><a href="VMNotice.jsp"><b>notícias</b></a></li>
                                <li><a href="VMTravelTip.jsp"><b>dicas de viagem</b></a></li>
                            </ul>
                        </div>
                    </td>
                </tr>
            </table>

            <table width="765">
                <tr>
                    <td>
                        <div style="float:left">
                            <table id="subTitulo2">
                                <tr>
                                    <td id="icone" align="center">
                                        <img src="add/images/icones/hotel.png" alt="Hotel" title="Hotel"/>
                                    </td>
                                    <td>
                                        Hotéis
                                    </td>
                                </tr>
                            </table>
                        </div>
                    </td>
                </tr>
            </table>

            <form id="form" action="../HotelServlet?acao=gravar&id=<%=request.getParameter("id")%>" method="post" enctype="multipart/form-data">
                <table cellpadding="0" cellspacing="0" style="font-family:calibri; font-size:13px">
                    <tr>
                        <td class="label_bg" style="width:150px;">&nbsp;&nbsp;Nome Fantasia:</td>
                        <td>&nbsp;&nbsp;<%=Hotel.getName() == null ? "" : Hotel.getName()%></td>
                    </tr>
                    <tr>
                        <td class="label">&nbsp;&nbsp;CNPJ:</td>
                        <td>&nbsp;&nbsp;<%=Hotel.getCnpj() == null ? "" : Hotel.getCnpj()%></td>
                    </tr>
                    <tr>
                        <td class="label_bg" style="width:150px;">&nbsp;&nbsp;Endereço:</td>
                        <td>&nbsp;&nbsp;<%=Hotel.getAddress() == null ? "" : Hotel.getAddress()%></td>
                    </tr>
                    <tr>
                        <td class="label">&nbsp;&nbsp;Inscrição Estadual:</td>
                        <td>&nbsp;&nbsp;<%=Hotel.getStateRegistration() == null ? "" : Hotel.getStateRegistration()%></td>
                    </tr>
                    <tr>
                        <td class="label_bg" style="width:150px;">&nbsp;&nbsp;Inscrição Municipal:</td>
                        <td>&nbsp;&nbsp;<%=Hotel.getMunicipalRegistration() == null ? "" : Hotel.getMunicipalRegistration()%></td>
                    </tr>
                    <tr>
                        <td class="label">&nbsp;&nbsp;Nome da Corporação:</td>
                        <td>&nbsp;&nbsp;<%=Hotel.getCorporateName() == null ? "" : Hotel.getCorporateName()%></td>
                    </tr>
                    <tr>
                        <td class="label_bg" style="width:150px;">&nbsp;&nbsp;CEP:</td>
                        <td>&nbsp;&nbsp;<%=Hotel.getCep() == null ? "" : Hotel.getCep()%></td>
                    </tr>
                    <tr>
                        <td class="label">&nbsp;&nbsp;Telefone:</td>
                        <td>&nbsp;&nbsp;<%=Hotel.getPhone() == null ? "" : Hotel.getPhone()%></td>
                    </tr>
                    <tr>
                        <td class="label_bg" style="width:150px;">&nbsp;&nbsp;Fax:</td>
                        <td>&nbsp;&nbsp;<%=Hotel.getFax() == null ? "" : Hotel.getFax()%></td>
                    </tr>
                    <tr>
                        <td class="label">&nbsp;&nbsp;Website:</td>
                        <td>&nbsp;&nbsp;<%=Hotel.getWebSite() == null ? "" : Hotel.getWebSite()%></td>
                    </tr>
                    <tr>
                        <td class="label_bg" style="width:150px;">&nbsp;&nbsp;E-mail:</td>
                        <td>&nbsp;&nbsp;<%=Hotel.getEmail() == null ? "" : Hotel.getEmail()%></td>
                    </tr>
                    <tr>
                        <td class="label">&nbsp;&nbsp;Cidade/Estado:</td>
                        <td>&nbsp;&nbsp;<%=Hotel.getCity().getFullName() == null ? "" : Hotel.getCity().getFullName()%></td>
                    </tr>
                    <tr>
                        <td class="label_bg" style="width:150px;">&nbsp;&nbsp;Logo:</td>
                        <td>&nbsp;&nbsp;<img src="../add/images/hotels/<%=Hotel.getLogo() == null ? "" : Hotel.getLogo()%>" alt="<%=Hotel.getLogo()%>" title="<%=Hotel.getLogo()%>"/></td>
                    </tr>
                    <tr>
                        <td class="label" valign="top">&nbsp;&nbsp;Descrição:</td>
                        <td>&nbsp;&nbsp;<%=Hotel.getDescription() == null ? "" : Hotel.getDescription()%></td>
                    </tr>
                </table>
            </form>
            <br/><br/>
            <table id="rodape" style="background-image:url(add/images/rodape.png);">
                <tr>
                </tr>
            </table>
            <table id="btRodape" style="text-decoration: none;" >
                <tr>
                    <td align="center" width="80px">
                        <ul class="btYoutube">
                            <li><a title="Youtube" href="http://www.youtube.com" /></li>
                        </ul>
                    </td >
                    <td align="center" width="80px">
                        <ul class="btOrkut">
                            <li><a title="Orkut" href="http://www.orkut.com" /></li>
                        </ul>
                    </td>
                    <td align="center" width="205px">
                        <ul class="btTwitter">
                            <li><a title="Twitter" href="http://twitter.com" /></li>
                        </ul>
                    </td>
                    <td align="center">
                        <a title="Trabalhe Conosco" class="text" href="Carrer.jsp" >Trabalhe Conosco</a>
                    </td>
                    <td align="center">
                        <a title="Mapa do Site" class="text" href="SiteMap.jsp">Mapa do Site</a>
                    </td>
                    <td align="center">
                        <a title="Contatos" class="text" href="Contact.jsp">Contatos</a>
                    </td>
                </tr>
            </table>
        </div>
    </body>
</html>
